<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>代理管理列表</title>
<link href="/majiang/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/majiang/Public/admin/js/jquery.js"></script>

<link href="/majiang/Public/admin/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/majiang/Public/admin/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="/majiang/Public/admin/js/select-ui.min.js"></script>
<script type="text/javascript" src="/majiang/Public/My97DatePicker/WdatePicker.js"></script>

<script type="text/javascript">
$(document).ready(function(e) {
    $("#type").uedSelect({
		width : 130			  
	});
});
</script>

</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="<?php echo U('index/welcome');?>">首页</a></li>
			<li><a href="<?php echo U('finance/popinfo');?>">提现申请</a></li>
		</ul>
    </div>
    
    <div class="formbody">
			<form name="seachform" id="seachform" action="<?php echo U('finance/popinfo');?>" method="post">
			<ul class="seachform">
			
				<li><label>用户</label><input name="info[keyword]" id="keyword" value="<?php echo ($keyword); ?>" type="text" class="scinput" /></li>	
				<li><label>申请时间</label>
					<input name="info[starttime]" id="starttime" class="dfinput" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'endtime\')||\'2100-10-01\' }'})" datatype="*" errormsg="时间范围开始值不能为空！" maxlength="20" style="width: 130px;" readonly value="<?php echo ($starttime); ?>" />-
					<input name="info[endtime]" id="endtime" class="dfinput" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'starttime\') }',maxDate:'2100-10-01'})" datatype="*" errormsg="时间范围结束值范围不能为空！" maxlength="20" style="width: 130px;" readonly value="<?php echo ($endtime); ?>" />
				<li><label>状态</label>
					<div class="vocation">
						<select id="type" name="info[type]">
							<option value="">请选择</option>
							<?php if(is_array($tixiantype)): $i = 0; $__LIST__ = $tixiantype;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>" <?php if(($key == $type) and ($type != '') ): ?>selected<?php endif; ?>><?php echo ($data); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
					</div>
				</li>
					<i class="Validform_checktip"></i></li>	
					
				<li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
			</ul>
		</form>
		
		<table class="tablelist">
			<thead>
				<tr>
					<th>用户名称</th>
					<th>账户余额</th>
					<th>申请提现金额</th>
					<th>银行账户名</th>
					<th>开户银行</th>
					<th>银行卡号</th>
					<th>申请时间</th>
					<th>申请提现状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($listinfo)): $i = 0; $__LIST__ = $listinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$popinfo): $mod = ($i % 2 );++$i;?><tr>
					<td><?php echo ($popinfo["nickname"]); ?></td>
					<td><?php echo ($popinfo["money"]); ?></td>
					<td><?php echo ($popinfo["pop_money"]); ?></td>
					<td><?php echo ($popinfo["pop_bankperson"]); ?></td>
					<td><?php echo ($popinfo["pop_bank"]); ?></td>
					<td><?php echo ($popinfo["pop_bankcode"]); ?></td>
					<td><?php echo ($popinfo["pop_time"]); ?></td>
					<td><?php echo ($tixiantype[$popinfo['pop_flag']]); ?></td>
					<td>
						<?php if($popinfo["pop_flag"] != 2): ?><a href="<?php echo U('finance/pop_shenhe',array('pop_id'=>$popinfo['pop_id']));?>" onclick="{if(confirm('确认审核通过?')){return true;}return false;}" class="tablelink">审核</a>
						<?php else: ?>
						---<?php endif; ?>
					</td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</tbody>
		</table>
		<?php echo ($pageshow); ?>
	<script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
	</script>
    
    </div>

</body>

</html>